//
//  DSUserInfo.m
//  外星球生活圈
//
//  Created by MR.ZHOU on 15/8/14.
//  Copyright (c) 2015年 MR.ZHOU. All rights reserved.
//

#import "ZFUserInfo.h"

@implementation ZFUserInfo

+(ZFUserInfo *)shareInstance{
    static ZFUserInfo *user = nil;
    static dispatch_once_t useInfo;
    dispatch_once(&useInfo, ^{
        user = [[self alloc]init];
    });
    return user;
}

+(void)InfoWithDict :(NSDictionary *)dict{


    [self shareInstance].user_name = dict[@"user_name"];
    [self shareInstance].user_id = dict[@"user_id"];
    [self shareInstance].middle_avatar = dict[@"middle_avatar"];
    if (dict != nil) {
        
    [self shareInstance].isLogin = YES;
    

}
}
@end
